<div id="fullBg" class="fullBg none"></div>
<div action="createInsuranceCoverage" id="select_insurance_dialog" class="dialog adddialog none" style="margin-top: -263px; margin-left: -325px;">
	<input type="hidden" name="insuranceId" />
	<div class="dialogTitle">新增险种</div>
	<button class="closeDiv">×</button>
	<div class="dialog_content">
		<div class="dialogDataLine">
			<div>保险名称：
				<input isNULL="1" codeName="保险名称" name="coverageName" type="text">
			</div>
			<div>投保金额：
				<input isNULL="1" codeName="投保金额" name="insuranceAmount" type="text" onkeyup="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')">
			</div>
		</div>
		<div class="dialogDataLine">
			<div>投保费用：
				<input isNULL="1" codeName="投保费用" name="premium" type="text" onkeyup="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')">
			</div>
			<div></div>
		</div>
		<div class="dialogDataLineTitle bulkstockTitle">货物：</div>
		<div class="dialogDataLine">
			<table id="selectInsuranceTable">
			</table>
			<script type="text/template" id="selectInsuranceTpl">
				<tr>
					<th>货名</th>
					<th>规格</th>
					<th>数量</th>
					<th>体积</th>
					<th>重量</th>
					<th>货物估值</th>
					<th>操作</th>
				</tr>
				{@each datas as it} {@each it.bulkstocks as item}
				<tr>
					<td>
						<input type="hidden" name="bulkstockId" value="${item.bulkstockId}" />${item.bulkstockName}</td>
					<td>${item.specification}</td>
					<td>${item.quantity}${item.unit}</td>
					<td>${item.weight}吨</td>
					<td>${item.volume}m³</td>
					<td>&#65509;${item.evaluateValuation}</td>
					<td><a class="bulkstockDelete">删除</a></td>
				</tr>
				{@/each} {@/each}
			</script>
		</div>
		<div class="dialogDataLineTitle inventoryTitle">货箱：</div>
		<div class="dialogDataLine">
			<table id="selectInsuranceBulkstockListingBody">
			</table>
			<script type="text/template" id="selectInsuranceBulkstockListingTpl">
				<tr>
					<th>箱号</th>
					<th>箱型尺寸</th>
					<th>货物名称</th>
					<th>规格型号</th>
					<th>重量</th>
					<th>数量</th>
					<th>体积</th>
					<th>货物估值</th>
					<th>操作</th>
				</tr>
				{@each datas as it}
				<tr>
					<td>
						<input type="hidden" name="inventoryId" value="${it.inventoryId}" />${it.caseNumber}</td>
					<td>${it.caseSize}</td>
					<td>
						{@each it.containerBulkstocks as item} ${item.bulkstockName}
						<br /> {@/each}
					</td>
					<td>
						{@each it.containerBulkstocks as item} ${item.specification}
						<br /> {@/each}
					</td>
					<td>
						{@each it.containerBulkstocks as item} ${item.quantity}${item.unit}
						<br /> {@/each}
					</td>
					<td>
						{@each it.containerBulkstocks as item} ${item.weight}吨
						<br /> {@/each}
					</td>
					<td>
						{@each it.containerBulkstocks as item} ${item.volume}m³
						<br /> {@/each}
					</td>
					<td>
						{@each it.containerBulkstocks as item} &#65509;${item.evaluateValuation}
						<br /> {@/each}
					</td>
					<td><a class="inventoryDelete">删除</a></td>
				</tr>
				{@/each}
			</script>
		</div>
	</div>
	<script type="text/template" id="dialog_content_detail">
		{@each datas as it}
		<div class="dialogDataLine">
			<div>保险名称：
				<input isNULL="1" value="${it.coverageName}" codeName="保险名称" name="coverageName" type="text">
			</div>
			<div>投保金额：
				<input isNULL="1" value="${it.insuranceAmount}" codeName="投保金额" name="insuranceAmount" type="text" onchange="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')">
			</div>
		</div>
		<div class="dialogDataLine">
			<div>投保费用：
				<input isNULL="1" value="${it.premium}" codeName="投保费用" name="premium" type="text">
			</div>
			<div></div>
		</div>
		<div class="dialogDataLineTitle bulkstockTitle">货物：</div>
		<div class="dialogDataLine">
			<table>
				<tr>
					<th>货名</th>
					<th>规格</th>
					<th>数量</th>
					<th>体积</th>
					<th>重量</th>
					<th>货物估值</th>
				</tr>
				{@each it.bulkstocks as item}
				<tr>
					<td>${item.bulkstockName}</td>
					<td>${item.specification}</td>
					<td>${item.quantity}${item.unit}</td>
					<td>${item.weight}吨</td>
					<td>${item.volume}m³</td>
					<td>&#65509;${item.evaluateValuation}</td>
				</tr>
				{@/each}
			</table>
		</div>
		<div class="dialogDataLineTitle inventoryTitle">货箱：</div>
		<div class="dialogDataLine">
			<table>
				<tr>
					<th>箱号</th>
					<th>箱型尺寸</th>
					<th>货物名称</th>
					<th>规格型号</th>
					<th>重量</th>
					<th>数量</th>
					<th>体积</th>
					<th>货物估值</th>
				</tr>
				{@each it.containers as item}
				<tr>
					<td>${item.caseNumber}</td>
					<td>${item.caseSize}</td>
					<td>
						{@each item.containerBulkstocks as that} ${that.bulkstockName}
						<br /> {@/each}
					</td>
					<td>
						{@each item.containerBulkstocks as that} ${that.specification}
						<br /> {@/each}
					</td>
					<td>
						{@each item.containerBulkstocks as that} ${that.quantity}${item.unit}
						<br /> {@/each}
					</td>
					<td>
						{@each item.containerBulkstocks as that} ${that.weight}吨
						<br /> {@/each}
					</td>
					<td>
						{@each item.containerBulkstocks as that} ${that.volume}m³
						<br /> {@/each}
					</td>
					<td>
						{@each item.containerBulkstocks as that} &#65509;${that.evaluateValuation}
						<br /> {@/each}
					</td>
				</tr>
				{@/each}
			</table>
		</div>
		{@/each}
	</script>
	<div class="footerBtn ad_button">
		<div class="dialogBtn dialogHandlerBtn sure_yes">确定</div>
		<div class="dialogBtn dialogHandlerBtn sure_no">取消</div>
	</div>
</div>